import axios from "axios";
import config from "./config";
export default {
    install:function (vue) {
        const auth = vue.prototype.$auth
        const obj = axios.create({
            baseURL:config.baseURL
        })
        obj.interceptors.request.use(function (conf) {
            conf.headers.Authorization = auth.getAuthorization()
            return conf
        })
        vue.prototype.$http = obj
    }
}